<?php  # Script -- pregname.php

/* Author @ Huoty
 *   Date @ 2015-11-25 14:12:26
 *  Brief @ 
 */

if (preg_match("/(.*)\d\..*/", "gimp3.jpeg", $matches))
{
    echo $matches[1] ;
}

?>
